package com.example.jwtauthdemo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "message-service")
public interface NotificationController {
    @PostMapping("/sse/pushToUser")
    String pushToUser(
            @RequestParam("userId") Integer userId,
            @RequestParam("data") Object data
    );
}